<!DOCTYPE html>

<html>
<head>
    <title>Page Title</title>
    <meta charset="utf8"/>
    <link href="<?php echo Yii::app()->request->baseUrl.'/css/bootstrap-3.2.0/css/bootstrap.min.css';?>" rel="stylesheet" type="text/css"/>
    <script src="<?php echo Yii::app()->request->baseUrl.'/css/bootstrap-3.2.0/js/jquery-1.11.1.min.js';?>" type="text/javascript"></script>
    <script src="<?php echo Yii::app()->request->baseUrl.'/css/bootstrap-3.2.0/js/bootstrap.min.js';?>" type="text/javascript"></script>
    <style>
        body {background-color: #F9F5F5;}
        li {list-style: none;}
        #header {width: 100%;height: 50px;background-color: #16B5EF;}
        #header a {display: inline-block;margin-top: 8px;}
        #header span {display: inline-block;margin-top: 8px;color: white;font-size: 20px;}
        
        #content {width: 100%;position: relative;}
        #tabBox {width: 244px;margin: 10px auto;}
        .tab-pane {padding: 0 10px;}
        .achievement {margin-top: 8px;border-bottom: 1px solid #ccc;}
        .achievement td {padding-bottom: 8px;}
        .achievement h4 {margin: 0;color: black;}
        
        table.brand {width: 100%;text-align: center;vertical-align: middle;}
        table.brand td {width: 33%;/*border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;*/}
        
        table.media {width: 100%;vertical-align: middle;}
        table.media tr {border-bottom: 1px solid #ccc;}
        table.media td {padding: 8px 0;}
        table.media td img {margin-right: 12px;}
    </style>
    <script>
        $(document).ready(function() {
            $("#theTab a").click(function() {
                $(this).addClass("active");
                $(this).siblings().removeClass("active");
            });
        });
    </script>
 </head>

<body>
    <div id="header">
              <?php
        echo $control->getAjaxLink(array(
            'name' => '<img src="' . Yii::app()->request->baseUrl . '/images/BWeEvent/back.png' . '"/>',
            'id' => 'goIndex'), array(
            'viewName' => 'guanzhe_index_2',
            'htmlOptions' => array(
                'enctype' => 'multipart/form-data'
        )));
        ?><span>荣誉墙</span>
    </div>
    <div id="content">
        <!-- Nav tabs -->
        <div id="tabBox">
            <div class="nav nav-tabs btn-group" id="theTab">
                <a href="#tab1" class="btn btn-default active" role="tab" data-toggle="tab">成果展示</a>
                <a href="#tab2" class="btn btn-default" role="tab" data-toggle="tab">品牌合作</a>
                <a href="#tab3" class="btn btn-default" role="tab" data-toggle="tab">媒体展示</a>
            </div>
        </div>
        
        
        <!-- Tab panes -->
        <div class="tab-content">
            <div role="tabpanel" class="tab-pane active" id="tab1">
                <?php    
                  foreach ($resultList as $content) {
                            $honourName = $content->getItem('honourName')->getValue();
                         //   $author = $content->getItem('author')->getValue();
                            $info = $content->getItem('info')->getValue();
                            $image = $content->getItem('image')->getValue();
                ?>
                <table class="achievement">
                    <tr>
                        <td rowspan="2" style="padding-right: 12px;"><img src="<?php echo Yii::app()->request->baseUrl.$image;?>" width="100px" height="100px"/></td>
                        <td><h4><?php echo $honourName;?></h4></td>
                    </tr>
                    <tr>
                        <td><?php echo $info;?></td>
                    </tr>
                </table>
                  <?php }?>
            </div>
            <div role="tabpanel" class="tab-pane" id="tab2">
                <table class="brand">
                    <tr>
                        <?php
                        foreach ($brandList as $content) {
                            $honourName = $content->getItem('honourName')->getValue();
                            //   $author = $content->getItem('author')->getValue();
                            $info = $content->getItem('info')->getValue();
                            $image = $content->getItem('image')->getValue();
                            ?>
                        <td><img src="<?php echo Yii::app()->request->baseUrl.$image;?>" width="100px" height="100px"/><p><?php echo $honourName;?></p></td>
                        <?php }?>
                    </tr>
                </table>
            </div>
            <div role="tabpanel" class="tab-pane" id="tab3">
                <table class="media">
                    <?php
                    foreach ($mediumList as $content) {
                        $honourName = $content->getItem('honourName')->getValue();
                        //   $author = $content->getItem('author')->getValue();
                        $info = $content->getItem('info')->getValue();
                        $image = $content->getItem('image')->getValue();
                        ?>
                        <tr>
                            <td><img src="<?php echo Yii::app()->request->baseUrl . $image; ?>" width="100px" height="100px"/></td>
                            <td><?php echo $info;?></td>
                        </tr>
                    <?php } ?>
                </table>
            </div>
        </div>
    </div>
</body>
</html>
